<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui" 
      >
    <ui:composition template="layout.xhtml">
        <ui:define name="corpo">
            <h:form id="form-upload" enctype="multipart/form-data">  
                <div id="breadcrumb">
                    <p:commandLink  actionListener="#{managerIndex.redirect('index.xhtml')}" value="Inicio" update="@form" immediate="true"/> >
                    <p:commandLink  actionListener="#{managerIndex.redirect('config.xhtml')}" value="Configurações" update="@form" immediate="true"/> >
                    <p:commandLink  value="Cadastro Automático" update="@form" immediate="true"/>
                </div>
                    <p:panel header="Escritura">
                    <p:messages showDetail="true"/>
                    <fieldset>
                        <legend>Arquivos</legend> 

                        <h:panelGrid columns="2" styleClass="textAlignRight" columnClasses="textAlignRight">    
                            <h:outputLabel value="Inicial" />
                            <p:calendar value="#{managerUpload.dataIni}"/>
                            <h:outputLabel value="Final" />
                            <p:calendar value="#{managerUpload.dataFim}"/>

                        </h:panelGrid>

                    </fieldset>
                    <br/>
                    <center>
                        <p:commandButton icon="ui-icon-transfer-e-w" value="Submeter Arquivos" ajax="false"
                                         actionListener="#{managerUpload.importTxtEscritura}"/>  
                        <p:commandButton icon="ui-icon-arrowreturnthick-1-w" value="Cancelar" actionListener="#{managerIndex.redirect('config.xhtml')}" update="@form"/>
                    </center>
                </p:panel>
            </h:form>  
        </ui:define>
    </ui:composition>
</html>

